import NProgress from 'nprogress'

NProgress.configure({ showSpinner: false });

export default ({ app, store }) => {
  app.router.beforeEach((to, from, next) => {
    NProgress.start()
    console.log("前置路由守卫")
    next()
  })
  app.router.afterEach(() => {
    NProgress.done()
    console.log("后置路由守卫")
  })
}
